package com.sanyang.logistics.WarehouseManager.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sanyang.logistics.WarehouseManager.mapper.ReceiveMapper;
import com.sanyang.logistics.pojo.PrepareInWarehouse;
import com.sanyang.logistics.pojo.Product;
import com.sanyang.logistics.pojo.RcptDamage;
import com.sanyang.logistics.pojo.RcptProdBridge;
import com.sanyang.logistics.pojo.Receipt;
import com.sanyang.logistics.pojo.Warehouse;

@Repository("sdao")
public class ReceiveDaoImpl implements ReceiveDao{

	@Autowired
	private ReceiveMapper mapper;

	@Override
	public List<Receipt> getAll(Receipt receipt) {
		// TODO Auto-generated method stub
		return mapper.getAll(receipt);
	}

	@Override
	public List<Warehouse> querySome() {
		// TODO Auto-generated method stub
		return mapper.querySome();
	}

	@Override
	public List<RcptProdBridge> getmxb(Integer rcpt_id) {
		// TODO Auto-generated method stub
		return mapper.getmxb(rcpt_id);
	}

	@Override
	public List<RcptProdBridge> geths(Integer prod_id) {
		// TODO Auto-generated method stub
		return mapper.geths(prod_id);
	}

//	@Override
//	public void upd(RcptDamage rcptDamage) {
//		// TODO Auto-generated method stub
//		mapper.upd(rcptDamage);
//		
//	}
	
	@Override
	public void hsb(RcptDamage rcptDamage) {
		// TODO Auto-generated method stub
		mapper.hsb(rcptDamage);
	}

	

	
	
	@Override
	public List<RcptProdBridge> getmx(Integer rcpt_id) {
		// TODO Auto-generated method stub
		return mapper.getmx(rcpt_id);
	}

	@Override
	public void upda(RcptProdBridge rcptProdBridge) {
		// TODO Auto-generated method stub
		 mapper.upda(rcptProdBridge);
	}

	

	@Override
	public void del() {
		// TODO Auto-generated method stub
		mapper.del();
	}
	
	@Override
	public void tj(RcptProdBridge rcptProdBridge) {
		// TODO Auto-generated method stub
	    mapper.tj(rcptProdBridge);	
	}

	@Override
	public List<PrepareInWarehouse> getall(Integer rcpt_id) {
		// TODO Auto-generated method stub
		return mapper.getall(rcpt_id);
	}

	@Override
	public void dele(Integer preind) {
		// TODO Auto-generated method stub
		mapper.dele(preind);
	}

	@Override
	public void upsl(RcptProdBridge rcptProdBridge) {
		// TODO Auto-generated method stub
		mapper.upsl(rcptProdBridge);
	}

	@Override
	public void updat(int rcpt_id) {
		// TODO Auto-generated method stub
		mapper.updat(rcpt_id);
	}

	@Override
	public void upzt(Integer rcpt_id) {
		// TODO Auto-generated method stub
		mapper.upzt(rcpt_id);
	}

	@Override
	public List<RcptDamage> getDam(int prod_id) {
		// TODO Auto-generated method stub
		return mapper.getDam(prod_id);
	}

	@Override
	public void delhsb(int damageid) {
		// TODO Auto-generated method stub
		mapper.delhsb(damageid);
	}

	@Override
	public void xgsj(RcptProdBridge rcptProdBridge) {
		// TODO Auto-generated method stub
		mapper.xgsj(rcptProdBridge);
	}

	



/*	@Override
	public List<RcptDamage> sel(Integer damageid) {
		// TODO Auto-generated method stub
		return mapper.sel(damageid);
	}*/
}
